#ifndef ACT_TYPES_H_INCLUDED
#define ACT_TYPES_H_INCLUDED

#define DOWN2UP         0       /* 下位机转换为上位机需要的格式 */
#define UP2DOWN         1       /* 上位机转换为下位机需要的格式 */

#define LEFT_CARRIAGE   0
#define RIGHT_CARRIAGE  1

#define CRGERROR_YC         -5
#define CRGERROR_SEL        -6
#define CRGERROR_CAM        -7
#define CRGERROR_F1         -8
#define CRGERROR_F2         -9
#define CRGERROR_B1         -10
#define CRGERROR_B2         -11
#define CRGERROR_F3         -12
#define CRGERROR_F4         -13
#define CRGERROR_B3         -14
#define CRGERROR_B4         -15
#define CRGERROR_FSINK      -16
#define CRGERROR_BSINK      -17
#define CRGERROR_FSINK2     -18
#define CRGERROR_BSINK2     -19

#define CRGERROR_YC_R       -20
#define CRGERROR_SEL_R      -21
#define CRGERROR_CAM_R      -22
#define CRGERROR_F1_R       -23
#define CRGERROR_F2_R       -24
#define CRGERROR_B1_R       -25
#define CRGERROR_B2_R       -26
#define CRGERROR_F3_R       -27
#define CRGERROR_F4_R       -28
#define CRGERROR_B3_R       -29
#define CRGERROR_B4_R       -30
#define CRGERROR_FSINK_R    -31
#define CRGERROR_BSINK_R    -32

#define CRGERROR_CAMF1      -33
#define CRGERROR_CAMB1      -34
#define CRGERROR_CAMF2      -35
#define CRGERROR_CAMB2      -36

enum _ActType { RESET = 0, ACT };
enum _BtState {DOWN = 0, UP};
enum _FBType { FB_ERROR = 0, FB_SENSOR };

typedef enum _ActType ActType;
typedef enum _FBType FBType;

enum { COMB_RAISE = 0, COMB_FALL, COMB_FALL_SAFE, COMB_BRAKE, COMB_STOP };
enum { CC_CLOSE = 0, CC_OPEN, CC_FALL };
enum { HOOK_OPEN = 0, HOOK_CLOSE };
enum { CLIP1 = 0, CLIP2, CLIP3, CLIP4, CUTTER1, CUTTER2 };

#define COMBERROR_CLIP1     -100
#define COMBERROR_CLIP2     -101
#define COMBERROR_CLIP3     -102
#define COMBERROR_CLIP4     -103
#define COMBERROR_CUTTER1   -104
#define COMBERROR_CUTTER2   -105
#define COMBERROR_HOOK      -106
#define COMBERROR_COMB      -107

#endif // ACT_TYPES_H_INCLUDED
